package TestSystemUtil;

import java.io.*;

public class Sender {
	public static boolean sendToServer (Writer output, String messageToServer) {
		try {
			output.write(messageToServer);
			output.flush();
			return true;
		} catch (IOException ex) {
			System.err.println("Send to Server: " + ex);
			return false;
		}
	}
	public static boolean sendToClient (Writer output, String messageToClient) {
		try {
			output.write(messageToClient);
			output.flush();
			return true;
		} catch (IOException ex) {
			System.err.println("Send to Client: " + ex);
			return false;
		}
	}
}
